<div id="middle">
    <h2>
	Search Results
	<span>Home > Search Results</span>
    </h2>

    <ul>
	<?php foreach($results as $result): ?>
	<li>
	    <div class="left">
		<a href="/<?php echo $result->type;?>/show/<?php echo $result->id;?>" class="title"><?php echo $result->title;?></a>
		<p>
		    <?php echo $result->content;?>
		</p>
	    </div>
	    <div class="right">
		Posted in <?php echo ucfirst($result->type);?><br/>
		<?php echo $result->created_at;?>
	    </div>
	</li>
	<?php endforeach;?>
    </ul>
</div>